x86/nospec: Introduce CONFIG_SPECULATIVE_HARDEN_BRANCH
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Sep 2019 17:25:21 +0000 (18:25 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 30 Oct 2019 13:07:25 +0000 (13:07 +0000)
commit2d6f36daa08640ebb0b658abffaede3a0ae50a20
treec10835df8ee6b806f64bf4068b17307f324a210a
parent8a74707a7c75d1eccfaeff6e71fe957c85976736
x86/nospec: Introduce CONFIG_SPECULATIVE_HARDEN_BRANCH

Just as with CONFIG_SPECULATIVE_HARDEN_ARRAY, branch hardening should be
configurable at compile time.

The previous CONFIG_HVM was a consequence of what could be discussed publicly
at the time the patches were submitted, and wasn't actually correct.  Later
patches will make further corrections.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/common/Kconfig
xen/include/asm-x86/nospec.h